home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
TPUG - Toronto PET Users Group
/
TPUG Users Group CD
/
TPUG Users Group CD.iso
/
COMAL
/
B-Book Series
/
(k)b4.d64
/
example3.4
< prev
next >
Wrap
Text File
|
2007-02-28
|
218b
|
11 lines
0010 COUNT:=0
0020 FOR GAME:=1 TO 10 DO
0030 REPEAT
0040 DIE:=RND(1,6)
0050 PRINT DIE;
0060 COUNT:=COUNT+1
0070 UNTIL DIE=6
0080 PRINT "END OF GAME"
0090 ENDFOR GAME
0100 PRINT "AVERAGE IS";COUNT/10